<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1" width="60%">
        <thead>
            <tr><th>名字</th><th>生日</th><th>成绩</th><th>操作</th></tr>
        </thead>
        <tbody>
            <tr th:each="s : ${pageObj.list}" >
                <td th:text="${s.name}"></td>
                <td th:text="${s.birthday}"></td>
                <td th:text="${s.grade}"></td>
                <td>
                    <a th:href="@{/thy/del(id=${s.id})}">删除</a>
                    <a th:href="@{/thy/findById(id=${s.id})}">修改</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div>
        <a th:each="n : ${#numbers.sequence(1,pageObj.pages)}" th:text="${n}"
        th:href="@{/thy/findAll(pageNO=${n})}" style="margin-left: 10px"></a>
    </div>
    <a href="/html/student/add.html">添加</a>
</body>
</html>